
Page({

  /**
   * 页面的初始数据
   */
  data: {
    schema:[
    ],
    formData:{
    },
    title: '',
    result: '',
    remark: '',
    webUrl: '',
    videoUrl: getApp().globalData.videoUrl
  },
  onLoad(options) {
    console.log('options', options)
    wx.setNavigationBarTitle({
      title: options.title,
    })
    
    this.setData({
      title: options.title,
      zh:options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
    this.videoContext = wx.createVideoContext('the-id', this);
  },
  getFormData(e) {
  },
  choose1() {
    if(this.videoContext) {
      this.videoContext.startCasting()
    }
  },
  choose2() {
    if(this.videoContext) {
      this.videoContext.switchCasting()
    }
  },
  choose3() {
    if(this.videoContext) {
      this.videoContext.reconnectCasting()
    }
  },
  choose4() {
    if(this.videoContext) {
      this.videoContext.exitCasting()
    }
  },
  onUnload() {
  }
})